<%@ page import="com.ws.ssmzongjie3.util.Res" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>编辑路线附图</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/bootstrap/js/jquery-2.1.0.min.js"></script>
    <script src="${pageContext.request.contextPath}/bootstrap/js/bootstrap.min.js"></script>
    <style>
        .cus-container {
            width: 80%;
            margin: 20px auto;
        }
        .form-group {
            margin-bottom: 15px;
        }
    </style>
</head>
<body>
<div class="container cus-container">
    <h2>编辑路线附图</h2>
    <form action="${pageContext.request.contextPath}/route_map/update" method="post" enctype="multipart/form-data">
        <input type="hidden" name="route_map_id" value="${route_map.route_map_id}">
        
        <div class="form-group">
            <label for="route_id">关联路线ID</label>
            <input type="text" class="form-control" id="route_id" name="route_id" value="${route_map.route_id}" required>
        </div>
        <div class="form-group">
            <label for="img">更换附图</label>
            <input type="file" class="form-control" id="img" name="image">
        </div>
        <div class="form-group">
            <label>当前图片</label>
            <div>
                <img src="<%=Res.fileUrl%>${route_map.route_img_url}" width="200" alt="当前图片">
            </div>
        </div>

        <div class="form-group">
            <label for="route_map_order">排序</label>
            <input type="text" class="form-control" id="route_map_order" name="route_map_order" value="${route_map.route_map_order}" required>
        </div>
        
        <div class="form-group">
            <button type="submit" class="btn btn-primary">保存</button>
            <a href="${pageContext.request.contextPath}/route_map/list" class="btn btn-default">返回列表</a>
        </div>
    </form>
</div>
</body>
</html>
